<?php
//echo $_SERVER['REQUEST_URI'];
if (!(strpos($_SERVER['REQUEST_URI'], "hotel/hotel_details/hotel_id/"))){
    $this->load->model('commonmodel');
    $banners=$this->commonmodel->get_galleryimages(1);
?>
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/coin-slider.min.js"></script>
    <link rel="stylesheet" href="<?php echo base_url();?>css/coin-slider-styles.css" type="text/css" />
    <?php 
    if ($banners): ?>
    <div id='coin-slider'>
        <?php foreach ($banners as $val): ?>
            <a href="img01_url" target="_blank">
                    <img src="<?php echo base_url();?>images/uploads/original/<?php echo $val['image']?>" width="595" height="320" />
                    <span>
                            <?php echo $val['image_title']?>
                    </span>
            </a>	
        <?php endforeach; ?>
    </div>
    <?php endif; ?>
    <script type="text/javascript">
        $(document).ready(function(){ 
            $('#coin-slider').coinslider();                
        });
    </script>
    <?php }?>